package com.yueshop.ware.exception;

import lombok.Getter;
import lombok.Setter;

//锁定库存失败异常
public class NoStockException extends RuntimeException {
    @Getter
    @Setter
    private Long skuId;
    public NoStockException(Long skuId) {
        super(skuId+"号商品库存不足");
    }
    public NoStockException(String msg) {
        super(msg);
    }
}